package classes;

/**
 * This class models the information that is parsed from the Config.xml file,
 * at system startup. 
 *
 * @author Davide Carneiro
 *
 */
public class Agent {

	private String name;
	private String path;
	private String service;
	private Boolean start;
	
	public Agent(){}
	
	/**
	 * @param name The local name of the agent.
	 * @param path The qualified name of the agent (e.g. package.AgentName).
	 * @param service The name of the service that the agent will register.
	 * @param start Indicates if the agent should be started at startup.
	 */
	public Agent(String name, String path, String service, Boolean start)
	{
		this.name = name;
		this.path = path;
		this.service = service;
		this.start = start;
	}
	
	/**
	 * @return The local name of the agent.
	 */
	public String getName()
	{
		return new String(name);
	}
	
	/**
	 * @return The qualified name of the agent (e.g. package.AgentName).
	 */
	public String getPath()
	{
		return new String(path);
	}
	
	/**
	 * @return The name of the service registered by the agent.
	 */
	public String getService()
	{
		return new String(service);
	}
	
	/**
	 * @return A value denoting if the agent should be started at startup.
	 */
	public Boolean getStart()
	{
		return start;
	}
}
